package com.cgsd.heyu.api;


import com.cgsd.heyu.utils.AESUtils;

import java.util.HashMap;

/**
 * 接口工具类
 */
public class APIUtils {

    /**
     * 参数封装
     *
     * @return
     */
    public static HashMap<String, String> getParams() {
        HashMap<String, String> params = new HashMap<>();
        params.put("encrypt", AESUtils.encode("hooyun2360656989"));
        return params;
    }

    public static HashMap<String, String> getParams(String key, String value) {
        HashMap<String, String> params = new HashMap<>();
        params.put("encrypt", AESUtils.encode(value));
        if (key != null) {
            params.put(key, value);
        }
        return params;
    }

    public static HashMap<String, String> getParams(String value) {
        HashMap<String, String> params = new HashMap<>();
        params.put("encrypt", AESUtils.encode(value));
        return params;
    }


}